package fr.umlv.ig.extraWindows;

import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;

import fr.umlv.ig.metroFactory.GraphicFactory;

/**
 * Represents the windows whre you can find some information about the projet.
 * @author jenseric
 *
 */
@SuppressWarnings("serial")
public class AboutWindow extends ExtraWindow {

	/**
	 * Initializes a AboutWindow
	 * @param owner the frame where the window is launch.
	 */
	public AboutWindow(JFrame owner) {
		super(owner, "About", true,563,280);
		init();
		dispose();
	}
	
	/**
	 * Method to initialize the component of the window
	 */
	private void init() {
		JPanel panel = new JPanel();
		JLabel label = new JLabel();
		label.setIcon(GraphicFactory.IMAGEABOUT);
		panel.add(label);
		add(panel);
		
	}

	/**
	 * Shows the windows.
	 */
	@Override
	public void start() {
		setVisible(true);
	}
}
